import request from '@/utils/request'

// 查询配料日报列表
export function listSiloReport(query) {
  return request({
    url: '/siloReport/siloReport/list',
    method: 'get',
    params: query
  })
}

// 查询配料日报列表(分页)
export function pageSiloReport(query) {
  return request({
    url: '/siloReport/siloReport/page',
    method: 'get',
    params: query
  })
}

// 查询配料日报详细
export function getSiloReport(id) {
  return request({
    url: '/siloReport/siloReport/get/' + id,
    method: 'get'
  })
}

// 新增配料日报
export function addSiloReport(data) {
  return request({
    url: '/siloReport/siloReport/add',
    method: 'post',
    data: data
  })
}

// 修改配料日报
export function updateSiloReport(data) {
  return request({
    url: '/siloReport/siloReport/edit',
    method: 'post',
    data: data
  })
}

// 删除配料日报
export function delSiloReport(id) {
  return request({
    url: '/siloReport/siloReport/remove/' + id,
    method: 'post'
  })
}


export function exportSiloReport(query) {
  return request({
    url: '/siloReport/siloReport/export',
    method: 'get',
    params: query
  })
}
